home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Arsenal - The Cutting Edge of Hacking / Hacker's Arsenal - The Cutting Edge of Hacking.iso / texts / nix / unixcommands.txt < prev    next >
Encoding:
Text File  |  2001-07-11  |  4.8 KB  |  108 lines

  1.      _|_|_|  _|        _|     _| _|     _|  _|     _|    _|_|_|   _|      _|_|_|
  2.      _|      _|      _|  _|  _| _| _|  _| _| _|  _|  _|  _|   _|  _|      _|
  3.      _|_|    _|      _|_|_|  _|    _|  _|    _|  _|_|_|  _|_|_|   _|      _|_|
  4.      _|      _|      _|  _|  _|    _|  _|    _|  _|  _|  _|   _|  _|      _|
  5.      _|      _|_|_|  _|  _|  _|    _|  _|    _|  _|  _|  _|_|_|   _|_|_|  _|_|_|
  6.  
  7.  
  8.                   _|_|_|   _|  _|  _|_|_|  _|_|_|  _|_|_|  _|_|_|
  9.                   _|   _|  _|  _|  _|      _|      _|      _|
  10.                   _|_|_|   _|_|_|  _|_|    _|      _|_|    _|_|_|
  11.                   _|       _|  _|  _|      _|      _|          _|
  12.                   _|       _|  _|  _|_|_|  _|_|_|  _|_|_|  _|_|_|
  13.  
  14.  
  15.                  http://www.pheces.org
  16.                              "Fear is everything..." 
  17.  
  18.  
  19. ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
  20.  
  21. Title:      |||| unix commands you can't live without ||||
  22.  
  23. Date:       July 22, 1999
  24. Author:     wri0t
  25.  
  26. ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
  27.  
  28. Here's some commonly used commands for most unix systems, and I'll try to explain them.
  29.  
  30.  
  31. grep - find things inside files/folders. for instance, you have 100 files and you need to
  32. see if one has the text '6/19/99' all you do is 'grep 6/19/99 *(or name of a file or folder).
  33.  
  34.  
  35. | - 'pipes' the output of one command to another.  like 'ps aux | grep eggdrop' will do a
  36.     process list, but since you added the '| grep eggdrop' it will grep the process list
  37.     and display any process list that has 'eggdrop' in it. another example...to do a 'who'
  38.     list and display any line that contains 'root' so you can make sure noones tryin to fuck
  39.     with your box, just 'w | grep root'. this is an easy yet powerful command that can
  40.     help you out alot.
  41.  
  42.  
  43. ; - 'link' many commands in one line. the commands dont interact with each other, the
  44.     commands will be executed -after- the one before it gets done) say your fixing to leave
  45.     the house, but you want to configure, compile, and install a big program while your away,
  46.     just type 'configure ; make ; make install' it will run 'configure', then 'make', then
  47.     'make install'.
  48.  
  49.  
  50. ls - hmm...surely you know what this is...heres a couple of things though... 'ls -al' will
  51.      display -all- files in a list format. 'ls --color' will display a color listing. (ls is
  52.      the same command as 'dir')
  53.  
  54.  
  55. w - a 'who' listing...i like it better then just a regular 'who'
  56.  
  57.  
  58. > - is kinda like an 'arrow' pointing to the right. < is the opposite. tells where you want
  59.     'send' or 'get' something from. look at 'echo' for an example.
  60.  
  61. >> - using this can 'append' things to the end of files, etc. for instance...
  62.        'cat blah >> textfile' will add the contents of 'blah' to the file 'textfile'.
  63.  
  64.  
  65. & - adding this to the end of a 'command' will start the program and run it in the
  66.      background.
  67.  
  68.  
  69. echo - just as the name says, it can echo stuff to other stuff (or just the screen). for
  70.        instance 'echo "atz" > /dev/modem' will send 'atz' to your modem. heres another
  71.        example...say your friend is on the console 'tty3' and you wanted to freak him
  72.        out...all you do is 'echo "THE SYSTEM IS GOING DOWN FOR REBOOT *NOW*" > /dev/tty3'.
  73.        or, 'echo "blah" > textfile ; /usr/lib/sendmail email@mail.com < textfile' would make
  74.        a file called 'textfile' with the contents of 'blah' and email it to email@email.com.
  75.  
  76.  
  77. find - find a certain file. example...say you wanted to find a file called 'soup', just 
  78.          'find -name / soup' or 'find /home/me -name soup'
  79.  
  80.  
  81. alias - creates an alias for a command. example...say you have redhat and in order to get a
  82.         colored direcotory list, you have to 'ls --color' everytime. just type:
  83.     alias ls='ls --color'.
  84.  
  85.  
  86. cat - displays a file on the screen or will 'write' it to somewhere/thing (all sorts of shit really). 
  87.         example... 'cat shit' will display the contents of the file 'shit' on the screen. but, what if 
  88.         shit is to big to fit on the screen? just use your elite unix command knowledge and do
  89.         'cat shit | more' (you could really just 'more shit', but i just did that for another example) 
  90.         and you'll be able to look at it a 'page' at a time.  it can also be used to whip up a quick
  91.         text file...just 'cat > filename' and type in whatever, and when your done, just ctl+c. 
  92.         another example to try is 'cat /vmlinuz > /dev/audio' :P
  93.  
  94.  
  95. tail - displays the last 'page' of a file. example...'tail blah' or 'tail -n 20 blah' the -n 20 tells it to
  96.         only output the last 20 lines of the prog. very useful for reading log files.
  97.  
  98. last - displays the last/current connections to the sys.  example...'last -10' will display the last
  99.          10 connections.
  100.  
  101.  
  102. Hope this txt file helped you out. Go impress your friends.
  103.  
  104. wri0t (wri0t@pheces.org) 
  105.  
  106. (((((((((((((((((((((((((((((((((((((((((((((#yep)))))))))))))))))))))))))))))))))))))))))))))
  107.  
  108.